package com.example.androidkt

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.example.androidkt.databinding.ActivityMain2Binding
import com.example.androidkt.fifth.DataBindingActivity
import com.example.androidkt.fifth.VIewModelActivity
import com.example.androidkt.fourth.Lifecycle1Activity
import com.example.androidkt.fourth.LiveData1Activity
import com.example.androidkt.seventh.NavigationActivity
import com.example.androidkt.seventh.PagingActivity
import com.example.androidkt.sixth.RoomActivity
import com.example.androidkt.sixth.WorkManagerActivity

class Main2Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)


        val binding = ActivityMain2Binding.inflate(layoutInflater)
        setContentView(binding.root)
        var text = "text"

        binding.btnLifecycle.setOnClickListener {
            startActivity(Intent(this,Lifecycle1Activity::class.java))
        }

        binding.btnLiveData.setOnClickListener {
            startActivity(Intent(this,LiveData1Activity::class.java))
        }

        binding.btnViewmodel.setOnClickListener {
            startActivity(Intent(this,VIewModelActivity::class.java))
        }


        binding.btnDatabinding.setOnClickListener {
            startActivity(Intent(this,DataBindingActivity::class.java))
        }

        binding.btnRoom.setOnClickListener {
            startActivity(Intent(this,RoomActivity::class.java))
        }

        binding.btnWorkmanager.setOnClickListener {
            startActivity(Intent(this,WorkManagerActivity::class.java))
        }

        binding.btnNavigation.setOnClickListener {
            startActivity(Intent(this,NavigationActivity::class.java))
        }

        binding.btnPaging.setOnClickListener {
            startActivity(Intent(this,PagingActivity::class.java))
        }


    }
}